<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<meta name="viewport" content="width=device-width, initial-scale=1">
		<title></title>
	</head>
	<body>
		<script type="text/javascript">
			//直接将js文件内容插入html 
			<%=compilation.assets[htmlWebpackPlugin.files.chunks.inline.entry.substr(htmlWebpackPlugin.files.publicPath.length)].source()%>
		</script>
		
		<!-- 这里为了对for循环写法有个认识,所以将上面语句用for循环方式实现 -->
		<% for(var k in htmlWebpackPlugin.files.chunks){ %>
			<% if(k == 'inline') { %>
					<script type="text/javascript">
						<%= compilation.assets[htmlWebpackPlugin.files.chunks[k].entry.substr(htmlWebpackPlugin.files.publicPath.length)].source() %>
					</script>
			<% } %>
		<% } %>
	</body>
</html>